package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品佣金设置
 */
@ApiModel(value = "com-lanchetech-entity-SpuCommission")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SpuCommission implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 商品SPU id
     */
    @ApiModelProperty(value = "商品SPU id")
    private Long spuId;

    /**
     * 主播佣金比例
     */
    @ApiModelProperty(value = "主播佣金比例")
    private BigDecimal anchorCommissionRate;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    /**
     * 会员佣金比例
     */
    @ApiModelProperty(value = "会员佣金比例")
    private BigDecimal recommendCommissionRate;

    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    private static final long serialVersionUID = 1L;
}